<template>
<div>
    <div id="videodiv">
    </div>
    <div>
        <button @click="clickStart" > 开始播放</button>
    </div>
</div>
</template>
<style>
#videodiv{
    background-color: #add;
    width: 80%;
    height: 60%;
    margin: auto;
}
</style>
<script>
import { initHikvision, login , getChannels } from 'common/hikvision'
export default { 
    data (){ 
        return { 
            
        }
    },
    methods: {
        clickStart() { 
            initHikvision()
            .then( function( data ) { 
                console.log( data );
            })
            .catch( function( error ){ 
                console.log( error );
            });
        }
    }
}

</script>